tests/test-gpg-signed-commit: Test more key states
authorDan Nicholson <nicholson@endlessm.com>
Mon, 17 Jun 2019 20:25:22 +0000 (15:25 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 19 Jun 2019 17:17:11 +0000 (17:17 +0000)
commit0c63f30783076915fc0ea5892a4908e53583146d
treec0320aa496ae3b2e2324c5ea0cb7dcb6c0056dbf
parentd8649f4d5618b0a64988aa092bb566b5c50174e6
tests/test-gpg-signed-commit: Test more key states

Extend test-gpg-signed-commit.sh to test various key states. If gpg is
found that supports the required options, keys will be generated on the
fly and changed in various ways to exercise the output from
`ostree_gpg_verify_result_describe_variant` used in `ostree show`.

I tested this using gnupg 2.2.12, so I hope it works well enough on
various gpgs found in the wild.

Closes: #1872
Approved by: cgwalters
tests/libtest.sh
tests/test-gpg-signed-commit.sh